package com.king01.controller;

import com.king01.service.OutStaffService;
import com.king01.vo.OutStaffVo;
import com.king01.vo.Result;
import com.king01.vo.StaffVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("OutSaff")
public class OutStaffController {
    @Autowired
    private OutStaffService outStaffService;

    @RequestMapping("/list")
    public Result list(Integer current, Integer pageSize, @RequestBody OutStaffVo outstaffVo) {
        Result result = outStaffService.findAll(current, pageSize, outstaffVo);
        return result;
    }
}

